import { Group } from '@/components/pro-panel/index.typing';

const group: Group = {
  title: '跟随缩放',
  key: 'follow-zoom',
  collapsed: false,
  columns: [
    {
      type: 'text',
      prop: 'text',
      label: '显示距离',
      span: 6.5,
    },
    {
      type: 'text',
      prop: 'text',
      label: '缩放范围(m)',
      span: 8.5,
    },
    {
      type: 'text',
      prop: 'text',
      label: '缩放比例(%)',
      span: 9,
    },
    {
      type: 'text',
      prop: 'minDisplayDistance',
      label: '最小距离',
      span: 6.5,
    },
    {
      type: 'input-number',
      prop: 'scaleByDistanceArray.0',
      label: '',
      span: 8,
      formProps: {
        controls: false,
        min: 0,
        step: 1,
      },
    },
    {
      type: 'input-number',
      prop: 'scaleByDistanceArray.1',
      label: '',
      span: 9,
      formProps: {
        controls: false,
        min: 0,
        step: 1,
      },
    },
    {
      type: 'text',
      prop: 'minDisplayDistance',
      label: '最大距离',
      span: 6.5,
    },
    {
      type: 'input-number',
      prop: 'scaleByDistanceArray.2',
      label: '',
      span: 8,
      formProps: {
        controls: false,
        min: 0,
        step: 1,
      },
    },
    {
      type: 'input-number',
      prop: 'scaleByDistanceArray.3',
      label: '',
      span: 9,
      formProps: {
        controls: false,
        min: 0,
        step: 1,
      },
    },
  ],
};

export default group;
